package com.wind.base.mvp.presenter;

import com.wind.base.mvp.view.UploadFileView;
import com.wind.base.subscriber.UploadFileSubscriber;
import com.wind.base.usecase.UploadFileUsecase;
import com.wind.base.usecase.UsecaseCompoment;

/**
 * Created by wind on 2018/9/19.
 */

public class UploadFilePresenter extends ExecutePresenter<UploadFileView> {
    private UploadFileUsecase mUploadFileUsecase;
    public UploadFilePresenter(UploadFileUsecase uploadFileUsecase){
        mUploadFileUsecase=uploadFileUsecase;
    }

    @Override
    public void attachView(UploadFileView view) {
        super.attachView(view);
        manager
                .addUsecaseCompoment(new UsecaseCompoment(new UploadFileSubscriber(view),mUploadFileUsecase));
    }
}
